package com.wasion.gydpe.ice;

import java.util.List;

public class CommDataOwner {

	@Override
	public boolean equals(Object obj) {
		return this.getUser().equals(((CommDataOwner) obj).getUser());
	}

	@Override
	public int hashCode() {
		if (user == null) {
			return 0;
		}
		return user.hashCode() * 29;
	}

	@Override
	public String toString() {
		return "数据拥有者(user:" + user + "\\seqIds: " + seqIds + "\\frameCnt:"
				+ frameCnt + "\\completed: " + completed + ")";
	}

	private Integer frameCnt;
	private List seqIds;
	private Object user;
	private boolean completed;

	public CommDataOwner() {
		// TODO Auto-generated constructor stub
	}

	public List getSeqIds() {
		return this.seqIds;
	}

	public void setSeqIds(List seqIds) {
		this.seqIds = seqIds;
	}

	public Object getUser() {
		return this.user;
	}

	public void setUser(Object user) {
		this.user = user;
	}

	public Integer getFrameCnt() {
		return frameCnt;
	}

	public void setFrameCnt(Integer frameCnt) {
		this.frameCnt = frameCnt;
	}

	public boolean isCompleted() {
		return completed;
	}

	public void setCompleted(boolean completed) {
		this.completed = completed;
	}

}
